package com.bj58.mis.bigdata.mdp.sys.service.impl;

import com.bj58.mis.bigdata.mdp.sys.domain.Org;
import com.bj58.mis.bigdata.mdp.sys.repository.OrgRepository;
import com.bj58.mis.bigdata.mdp.sys.service.OrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

@Service
@Transactional
public class OrgServiceImpl implements OrgService {

    @Autowired
    private OrgRepository orgRepository;

    @Override
    public void save(Org org) {
        orgRepository.save(org);
    }

    @Override
    public void saveAll(List<Org> orgs) {
        orgRepository.saveAll(orgs);
    }
}
